package com.ajie.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.annotation.SaCheckRole;
import cn.dev33.satoken.annotation.SaMode;
import com.ajie.config.annotation.RestControllerMapping;
import com.ajie.model.Result;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author: ajie
 * @createTime: 2024-07-20 13:49
 */
@RestControllerMapping("test")
public class TestController {

    @GetMapping
    @SaCheckRole(value = { "ADMIN2", "S_ADMIN", "ADMIN3" }, mode = SaMode.OR)
    @SaCheckPermission(value = { "system:user:select2" }, orRole = { "S_ADMIN" })
    public Result<String> test() {
        return Result.success("测试成功");
    }

}
